﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kevin.Framework.Data.OrmMapping;

namespace JOIN.Rights.BLL
{
    [Serializable]
    public class ServiceResult<T> where T : EntityBase
    {
        public bool Successed
        {
            get;
            set;
        }
        public string ErrorMsg
        {
            get;
            set;
        }
        public T Object
        {
            get;
            set;
        }

        public int RecordCount
        {
            get;
            set;
        }

        public IList<T> List
        {
            get;set;
        }
    }

    public class QueryResult
    {
        public int RecordCount
        {
            get;
            set;
        }

        public bool Successed
        {
            get;
            set;
        }

        public string ErrorMsg
        {
            get;
            set;
        }
       
    }
}
